import request from '@/config/utils/request';

// 审批退回数据展示
export function listWfcRecord(data) {
  return request({
    url: '/apis/smp/paymentRegister/listWfcRecord',
    method: 'POST',
    data,
  });
}

// 付款管理-填报单位下拉数据
export function listUserPartJobComInfo(data) {
  return request({
    url: '/apis/smp/basic/listUserPartJobComInfo',
    method: 'POST',
    data,
  });
}

// 付款管理-合同列表数据接口
export function qryConcList(data) {
  return request({
    url: '/apis/smp/payment/qryConcList',
    method: 'POST',
    data,
  });
}

// 付款管理-合同数据反显数据接口(模拟接口) 入参concId: 7488
export function getSmpPcConcMatListById(data) {
  return request({
    url: '/apis/smp/smppcconc/getSmpPcConcMatListById',
    method: 'POST',
    data,
  });
}

// 付款管理-登记单详情新增接口
export function insertPaymentRegister(data) {
  return request({
    url: '/apis/smp/paymentRegister/insertPaymentRegister',
    method: 'POST',
    data,
  });
}

// 付款管理-付款申请单编号弹框
export function qryListByOrgId(data) {
  return request({
    url: '/apis/smp/payment/qryListByOrgId',
    method: 'POST',
    data,
  });
}

// 付款管理-编辑页的暂存 保存并校验 保存和提交
export function updatePaymentRegister(data) {
  return request({
    url: '/apis/smp/paymentRegister/updatePaymentRegister',
    method: 'POST',
    data,
  });
}

// 付款管理-登记单详情编辑查询
export function qryPaymentRegisterById(data) {
  return request({
    url: '/apis/smp/paymentRegister/qryPaymentRegisterById',
    method: 'POST',
    data,
  });
}

// 付款管理-申请详情合同数据反显
export function getSmpPcConcById(data) {
  return request({
    url: '/apis/smp/payment/getSmpPcConcById',
    method: 'POST',
    data,
  });
}

// 基本信息相关接口
// 获取付款信息列表数据
export function qryPaymentRegister(data) {
  return request({
    url: '/apis/smp/paymentRegister/qryPaymentRegister',
    method: 'POST',
    data,
  });
}

// 撤回
export function withdrawPaymentRegister(data) {
  return request({
    url: '/apis/smp/paymentRegister/withdrawPaymentRegister',
    method: 'POST',
    data,
  });
}

// 删除
export function deletePaymentRegisterById(data) {
  return request({
    url: '/apis/smp/paymentRegister/deletePaymentRegisterById',
    method: 'POST',
    data,
  });
}

// 查看详情展示的数据
export function qryPaymentdetail(data) {
  return request({
    url: '/apis/smp/payment/qryPaymentdetail',
    method: 'POST',
    data,
  });
}
